package cn.lyl;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

@SpringBootApplication //申明这个类springboot项目启动类
@MapperScan("cn.lyl.*.mapper") //扫描mapper包路径  并生成代理对象 供service注入
@ServletComponentScan(value = "cn.lyl.basic.listener") //扫描监听器所在的包
public class PethomeApp {
    public static void main(String[] args) {
        //使用启动类运行spring项目
        SpringApplication.run(PethomeApp.class);
    }
}
